OutcomeEagerEffectScope

value class OutcomeEagerEffectScope<E>(cont: EagerEffectScope<Either<Failure<E>, Absent>>) : EagerEffectScope<Either<Failure<E>, Absent>> (source)

Constructors

Link copied to clipboard
constructor(cont: EagerEffectScope<Either<Failure<E>, Absent>>)

Functions

Link copied to clipboard
open suspend fun <E, A> attempt(f: suspend EagerEffectScope<E>.() -> A): suspend EagerEffectScope<E>.() -> A
Link copied to clipboard
suspend fun <B> Outcome<E, B>.bind(): B
open suspend fun <B> Either<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> Validated<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> EagerEffect<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> EagerEffect<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> Option<B>.bind(shift: () -> Either<Failure<E>, Absent>): B
open suspend fun <B> Result<B>.bind(transform: (Throwable) -> Either<Failure<E>, Absent>): B
Link copied to clipboard
open infix fun <E, A> suspend EagerEffectScope<E>.() -> A.catch(recover: EagerEffectScope<Either<Failure<E>, Absent>>.(E) -> A): A
Link copied to clipboard
open suspend fun ensure(condition: Boolean, shift: () -> Either<Failure<E>, Absent>)
Link copied to clipboard
open suspend override fun <B> shift(r: Either<Failure<E>, Absent>): B